{% extends 'mytest.html' %}

{% block content-center %}
<h3  class="page-header">用户信息 </h3>
    <form action="/mytest/dj/" method="get" class="form-search">
        <input type="text" name="q" value="{{ search_item }}">
        <input type="submit" class="btn" value="搜索">
    </form>
    <div class='row'>
      <table class="table table-hover">
       <th>id</th>
       <th>姓</th>
       <th>名</th>
       <th>邮箱</th>

       {% for user in user%}
        <tr>
           <td> {{user.id}} </td>
           <td> {{user.first_name}}</td>
           <td> {{user.last_name}}</td>
           <td> {{user.email}}</td>
        </tr>
        {%endfor%}
     </table>
    </div>
{% endblock %}